package com.txtdhis.consumer.manage.controller;


import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.txtdhis.common.domain.User;
import com.txtdhis.consumer.manage.service.ActivitiService;
import com.txtdhis.consumer.manage.service.MqService;
import com.txtdhis.consumer.manage.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.source.UnboundElementsSourceFilter;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;

/**
 * @program: UserController
 * @description: UserController
 * @author: zhanglei
 * @create: 2021-08-30 12:51
 */

@Api(tags = "业务接口")
@RequestMapping("/business")
@Slf4j
@RestController
public class BusinessController {
    @Autowired
    private ActivitiService activitiService;

    @ApiOperation("测试工作流")
    @PostMapping(value = "/startActiviti")
    public String startActiviti(Model model) {
        activitiService.startActiviti();
        return "next part ok";
    }
}
